<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.4.2">
  <link rel="apple-touch-icon" sizes="180x180" href="/blog/images/icon.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/blog/images/icon.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/blog/images/icon.png">
  <link rel="mask-icon" href="/blog/images/icon.svg" color="#222">

<link rel="stylesheet" href="/blog/css/main.css">


<link rel="stylesheet" href="/blog/lib/font-awesome/css/all.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"bgape002.gitee.io","root":"/blog/","scheme":"Gemini","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":true,"show_result":true,"style":"mac"},"back2top":{"enable":true,"sidebar":false,"scrollpercent":true},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},"path":"search.xml"};
  </script>

  <meta name="description" content="NodejsNodejs 安装nodejs下载    &#x2F;&#x2F;&#x2F;    无法下载的同学可以试试这个链接**node-v14.16.0-x64** 点击安装包，根据提示点点点就好了。 安装完成，打开命令行窗口，node -v测试是否安装成功">
<meta property="og:type" content="article">
<meta property="og:title" content="hexo-gitee 搭建个人博客">
<meta property="og:url" content="https://bgape002.gitee.io/2021/03/17/hexo-gitee-%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2/index.html">
<meta property="og:site_name" content="bgape002">
<meta property="og:description" content="NodejsNodejs 安装nodejs下载    &#x2F;&#x2F;&#x2F;    无法下载的同学可以试试这个链接**node-v14.16.0-x64** 点击安装包，根据提示点点点就好了。 安装完成，打开命令行窗口，node -v测试是否安装成功">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://bgape002.gitee.io/blog/images/nodejs_config.png">
<meta property="og:image" content="https://bgape002.gitee.io/blog/images/web_s.png">
<meta property="og:image" content="https://bgape002.gitee.io/blog/images/web_s_d.png">
<meta property="article:published_time" content="2021-03-17T00:30:40.000Z">
<meta property="article:modified_time" content="2022-07-06T08:49:22.323Z">
<meta property="article:author" content="bgape002">
<meta property="article:tag" content="hexo">
<meta property="article:tag" content="Nodejs">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://bgape002.gitee.io/blog/images/nodejs_config.png">

<link rel="canonical" href="https://bgape002.gitee.io/2021/03/17/hexo-gitee-%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>

  <title>hexo-gitee 搭建个人博客 | bgape002</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/blog/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">bgape002</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
      <p class="site-subtitle" itemprop="description">淡泊明志，宁静致远</p>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
        <i class="fa fa-search fa-fw fa-lg"></i>
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/blog/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/blog/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>标签<span class="badge">66</span></a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/blog/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类<span class="badge">27</span></a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/blog/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档<span class="badge">61</span></a>

  </li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
        </a>
      </li>
  </ul>
</nav>



  <div class="search-pop-overlay">
    <div class="popup search-popup">
        <div class="search-header">
  <span class="search-icon">
    <i class="fa fa-search"></i>
  </span>
  <div class="search-input-container">
    <input autocomplete="off" autocapitalize="off"
           placeholder="搜索..." spellcheck="false"
           type="search" class="search-input">
  </div>
  <span class="popup-btn-close">
    <i class="fa fa-times-circle"></i>
  </span>
</div>
<div id="search-result">
  <div id="no-result">
    <i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i>
  </div>
</div>

    </div>
  </div>

</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://bgape002.gitee.io/2021/03/17/hexo-gitee-%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/blog/images/head.png">
      <meta itemprop="name" content="bgape002">
      <meta itemprop="description" content="mail: bgape002@163.com">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="bgape002">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          hexo-gitee 搭建个人博客
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2021-03-17 08:30:40" itemprop="dateCreated datePublished" datetime="2021-03-17T08:30:40+08:00">2021-03-17</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="far fa-calendar-check"></i>
                </span>
                <span class="post-meta-item-text">更新于</span>
                <time title="修改时间：2022-07-06 16:49:22" itemprop="dateModified" datetime="2022-07-06T16:49:22+08:00">2022-07-06</time>
              </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-folder"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/blog/categories/blog/" itemprop="url" rel="index"><span itemprop="name">blog</span></a>
                </span>
            </span>

          
            <span class="post-meta-item" title="阅读次数" id="busuanzi_container_page_pv" style="display: none;">
              <span class="post-meta-item-icon">
                <i class="fa fa-eye"></i>
              </span>
              <span class="post-meta-item-text">阅读次数：</span>
              <span id="busuanzi_value_page_pv"></span>
            </span>
  
  <span class="post-meta-item">
    
      <span class="post-meta-item-icon">
        <i class="far fa-comment"></i>
      </span>
      <span class="post-meta-item-text">Valine：</span>
    
    <a title="valine" href="/blog/2021/03/17/hexo-gitee-%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2/#valine-comments" itemprop="discussionUrl">
      <span class="post-comments-count valine-comment-count" data-xid="/blog/2021/03/17/hexo-gitee-%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2/" itemprop="commentCount"></span>
    </a>
  </span>
  
  

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <h2 id="Nodejs"><a href="#Nodejs" class="headerlink" title="Nodejs"></a>Nodejs</h2><h3 id="Nodejs-安装"><a href="#Nodejs-安装" class="headerlink" title="Nodejs 安装"></a>Nodejs 安装</h3><p><strong><a target="_blank" rel="noopener" href="http://nodejs.cn/download/">nodejs下载</a></strong>    ///    无法下载的同学可以试试这个链接**<a target="_blank" rel="noopener" href="https://wws.lanzous.com/iIOQomsns1c">node-v14.16.0-x64</a>**</p>
<p>点击安装包，根据提示点点点就好了。</p>
<p>安装完成，打开命令行窗口，<code>node -v</code>测试是否安装成功</p>
<span id="more"></span>

<h3 id="Nodejs环境配置"><a href="#Nodejs环境配置" class="headerlink" title="Nodejs环境配置"></a>Nodejs环境配置</h3><p>获取npm配置信息：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm config list</span><br></pre></td></tr></table></figure>

<p><img src="/blog/images/nodejs_config.png" alt="nodejs configure"></p>
<p><strong>设置模块所在路径与缓存路径</strong></p>
<p>在nodejs安装目录下新建<code>node_cache</code>,<code>node_global</code>文件夹；例：<code>D:\major\node</code>下</p>
<p>在命令行窗口输入：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">npm config <span class="built_in">set</span> prefix <span class="string">&quot;D:\major\node\node_global&quot;</span></span><br><span class="line">npm config <span class="built_in">set</span> cache <span class="string">&quot;D:\major\node\node_cache&quot;</span></span><br></pre></td></tr></table></figure>

<p><strong>配置环境变量</strong></p>
<p>右键我的电脑&gt;&gt;属性&gt;&gt;高级设置(&gt;&gt;高级)&gt;&gt;环境变量</p>
<p>修改用户变量：path&gt;&gt;编辑&gt;&gt;点击带npm环境路径&gt;&gt;编辑&gt;&gt;改为<code>D:\major\node\node_global</code>&gt;&gt;确定</p>
<p>修改系统变量：新建&gt;&gt;变量名：NODE_PATH&gt;&gt;变量值：<code>D:\major\node\node_global\node_modules</code>&gt;&gt;确定</p>
<h3 id="安装淘宝cnpm镜像"><a href="#安装淘宝cnpm镜像" class="headerlink" title="安装淘宝cnpm镜像"></a>安装淘宝cnpm镜像</h3><p>鉴于npm的镜像源默认是国外路径，下载速度通常较慢。因此可安装cnpm包：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install -g cnpm --registry=https://registry.npm.taobao.org</span><br></pre></td></tr></table></figure>

<p>以后使用npm下载包时，可用cnpm代替</p>
<p>此外，可修改默认镜像源：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm config <span class="built_in">set</span> registry https://registry.npm.taobao.org</span><br></pre></td></tr></table></figure>

<h2 id="Hexo"><a href="#Hexo" class="headerlink" title="Hexo"></a>Hexo</h2><p><em>Hexo</em> 是一个基于nodejs 的静态博客网站生成器，支持Markdown格式的跨平台开源博客系统。</p>
<p><strong>在正式开始前的建议：安装git</strong>。<a href="https://bgape002.gitee.io/blog/2021/03/16/Git%E4%BD%BF%E7%94%A8%E7%AE%80%E8%BF%B0/">git使用简述</a></p>
<p>Hexo安装：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install hexo-cli -g</span><br></pre></td></tr></table></figure>

<p>切换命令行当前路径至自己期望的存放blog文件的文件夹（建议切换目录后，再新建一个blog目录），使用初始化命令：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">hexo init</span><br></pre></td></tr></table></figure>

<p>然后，你的博客框架就完成了。（手动狗头）</p>
<hr>
<p><strong>这里再介绍五个hexo命令</strong></p>
<p>清空已有hexo网站文件，主要表现为删除博客目录下的<code>public</code>文件夹</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">hexo clean</span><br></pre></td></tr></table></figure>

<hr>
<p>新建一篇博客，默认存在<code>/source/_post/</code>，为<code>.md</code>文件。<code>title</code>为文章标题。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">hexo new <span class="string">&quot;title&quot;</span>        </span><br></pre></td></tr></table></figure>

<p>这里补充一个命令，某些主题（如yilia）下可能会用到:</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">hexo new page <span class="string">&quot;title&quot;</span></span><br></pre></td></tr></table></figure>

<p>生成文件位置也在<code>/source/</code>下，具体内容可去对应位置查看。</p>
<hr>
<p>依据网页文本与新的CSS样式生成新网站文件</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">hexo generate</span><br></pre></td></tr></table></figure>

<hr>
<p>启动本地服务器，默认localhost:4000，可在浏览器内输入，查看网站修改效果</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">hexo server</span><br></pre></td></tr></table></figure>

<p>有少数情况可能会存在端口冲突问题，可以选择使用命令改变启动端口：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">hexo server -p <span class="string">&quot;端口号&quot;</span></span><br></pre></td></tr></table></figure>

<hr>
<p>将本地网站内容发布到远端</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">hexo deploy</span><br></pre></td></tr></table></figure>

<p>在使用发布命令前，你需要安装插件：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install hexo-deployer-git --save</span><br></pre></td></tr></table></figure>

<p>然后，你会发现还是发布不了。因为你根本没告诉它，往哪里发布…（手动滑稽）</p>
<hr>
<p>程序员嘛，用脑子偷懒的一群人，不会偷懒的程序员是没有灵魂滴。所以嘛，hexo还贴心的提供了方便，以上命令处理第一个，都可以用首字母代替</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">hexo n <span class="string">&quot;title&quot;</span></span><br><span class="line">hexo g</span><br><span class="line">hexo s</span><br><span class="line">hexo d</span><br></pre></td></tr></table></figure>

<p>至于为什么没有<code>hexo c</code>……这种问题就不要问我了，因为问了我也不会告诉你。</p>
<h3 id="Hexo主题下载"><a href="#Hexo主题下载" class="headerlink" title="Hexo主题下载"></a>Hexo主题下载</h3><p>自带的主题应该不能满足你的胃口（事实上，我看都没看….），你可以从**<a target="_blank" rel="noopener" href="https://hexo.io/themes/">主题链接</a>**，选择下载自己喜欢的主题。</p>
<p>这里推荐两款主题<code>Next</code>(目前使用的)，<code>yilia</code></p>
<p>当前路径切换到/themes/下：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">git <span class="built_in">clone</span> https://gitee.com/bgape002/hexo-theme-next.git  <span class="comment"># next 下载完后，建议修改主题名为next</span></span><br><span class="line">git <span class="built_in">clone</span> https://gitee.com/AlbertF/hexo-theme-yilia.git  <span class="comment"># yilia 下载完后，建议修改主题名为yilia</span></span><br></pre></td></tr></table></figure>

<p>PS：这两个仓库是gitee上的，面向github网速不好的同学。如希望获取最新版本，可值github上获取。</p>
<h3 id="Hexo修改配置文件"><a href="#Hexo修改配置文件" class="headerlink" title="Hexo修改配置文件"></a>Hexo修改配置文件</h3><p>这里将完成告诉hexo发布地点的使命。</p>
<p>打开站点目录下<code>_config.yml</code>文件，修改站点信息:</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># Site</span></span><br><span class="line"><span class="attr">title:</span> <span class="string">bgape002</span></span><br><span class="line"><span class="attr">subtitle:</span> <span class="string">&#x27;淡泊明志，宁静致远&#x27;</span></span><br><span class="line"><span class="attr">description:</span> <span class="string">&#x27;mail: bgape002@163.com&#x27;</span></span><br><span class="line"><span class="attr">keywords:</span> <span class="string">computer</span> <span class="string">records</span></span><br><span class="line"><span class="attr">author:</span> <span class="string">bgape002</span></span><br><span class="line"><span class="attr">language:</span> <span class="string">zh-CN</span></span><br><span class="line"><span class="attr">timezone:</span> <span class="string">Asia/Shanghai</span></span><br></pre></td></tr></table></figure>

<p>修改url地址：</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">url:</span> <span class="string">https://bgape002.gitee.io</span>   <span class="comment"># gitee上公开（public）仓库的地址</span></span><br><span class="line"><span class="attr">root:</span> <span class="string">/blog/</span></span><br><span class="line"><span class="attr">permalink:</span> <span class="string">:year/:month/:day/:title/</span></span><br><span class="line"><span class="attr">permalink_defaults:</span></span><br></pre></td></tr></table></figure>

<p>关于怎么在gitee上建立仓库，你自己倒腾倒腾应该也就出来了。</p>
<hr>
<p>修改所使用的主题：</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">theme:</span> <span class="string">next</span>  <span class="comment"># 与/themes/下的主题名保持一致</span></span><br></pre></td></tr></table></figure>

<p>关于该主题(Next)的详细配置与使用攻略，请参考**<a href="https://bgape002.gitee.io/blog/2021/03/13/hexo-next-%E4%B8%BB%E9%A2%98%E9%85%8D%E7%BD%AE/">hexo next 主题配置</a>**</p>
<hr>
<p>嗯，终于到来关键时刻了，修改发布信息：</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">deploy:</span></span><br><span class="line">    <span class="attr">type:</span> <span class="string">git</span></span><br><span class="line">    <span class="attr">repository:</span> <span class="string">https://gitee.com/bgape002/blog.git</span></span><br><span class="line">    <span class="attr">branch:</span> <span class="string">master</span></span><br><span class="line">    <span class="attr">message:</span> <span class="string">blog</span> <span class="string">contents</span></span><br></pre></td></tr></table></figure>

<h3 id="开启gitee的web服务"><a href="#开启gitee的web服务" class="headerlink" title="开启gitee的web服务"></a>开启gitee的web服务</h3><p>进入gitee上的博客仓库&gt;&gt;服务&gt;&gt;GItee Pages&gt;&gt;勾选<code>强制使用HTTPS</code>&gt;&gt;更新</p>
<p><img src="/blog/images/web_s.png" alt="web s"></p>
<p>链接地址见图：</p>
<p><img src="/blog/images/web_s_d.png" alt="blog网址"></p>
<p>复制网站地址，在浏览器中打开，欣赏你的网站，夸奖自己一会。（温馨提示：该活动一定要在内心中进行。实在忍不住一定要尽量小声，或在无人环境中进行。否则，被打了，后果自负。）</p>
<hr>
<p>至此，个人博客搭建完成。</p>
<p>完结，撒花。</p>
<h2 id="参考文献"><a href="#参考文献" class="headerlink" title="参考文献"></a>参考文献</h2><font size=2>

<p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/coder-lzh/p/9232192.html">nodeJS安装和环境变量的配置</a></p>
<p><a target="_blank" rel="noopener" href="https://www.bilibili.com/video/BV1Yb411a7ty?from=search&seid=1175917846417282266">B站hexo教程视频</a></p>
</font>
    </div>

    
    
    

      <footer class="post-footer">
          
          <div class="post-tags">
              <a href="/blog/tags/hexo/" rel="tag"><i class="fa fa-tag"></i> hexo</a>
              <a href="/blog/tags/Nodejs/" rel="tag"><i class="fa fa-tag"></i> Nodejs</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/blog/2021/03/16/Git%E4%BD%BF%E7%94%A8%E7%AE%80%E8%BF%B0/" rel="prev" title="Git使用简述">
      <i class="fa fa-chevron-left"></i> Git使用简述
    </a></div>
      <div class="post-nav-item">
    <a href="/blog/2021/03/22/python%E9%95%9C%E5%83%8F%E6%BA%90/" rel="next" title="python镜像源">
      python镜像源 <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  



          </div>
          
    <div class="comments" id="valine-comments"></div>

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>


        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#Nodejs"><span class="nav-number">1.</span> <span class="nav-text">Nodejs</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#Nodejs-%E5%AE%89%E8%A3%85"><span class="nav-number">1.1.</span> <span class="nav-text">Nodejs 安装</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#Nodejs%E7%8E%AF%E5%A2%83%E9%85%8D%E7%BD%AE"><span class="nav-number">1.2.</span> <span class="nav-text">Nodejs环境配置</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%AE%89%E8%A3%85%E6%B7%98%E5%AE%9Dcnpm%E9%95%9C%E5%83%8F"><span class="nav-number">1.3.</span> <span class="nav-text">安装淘宝cnpm镜像</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Hexo"><span class="nav-number">2.</span> <span class="nav-text">Hexo</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#Hexo%E4%B8%BB%E9%A2%98%E4%B8%8B%E8%BD%BD"><span class="nav-number">2.1.</span> <span class="nav-text">Hexo主题下载</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#Hexo%E4%BF%AE%E6%94%B9%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6"><span class="nav-number">2.2.</span> <span class="nav-text">Hexo修改配置文件</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%BC%80%E5%90%AFgitee%E7%9A%84web%E6%9C%8D%E5%8A%A1"><span class="nav-number">2.3.</span> <span class="nav-text">开启gitee的web服务</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%8F%82%E8%80%83%E6%96%87%E7%8C%AE"><span class="nav-number">3.</span> <span class="nav-text">参考文献</span></a></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="bgape002"
      src="/blog/images/head.png">
  <p class="site-author-name" itemprop="name">bgape002</p>
  <div class="site-description" itemprop="description">mail: bgape002@163.com</div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/blog/archives/">
        
          <span class="site-state-item-count">61</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/blog/categories/">
          
        <span class="site-state-item-count">27</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/blog/tags/">
          
        <span class="site-state-item-count">66</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 2021 – 
  <span itemprop="copyrightYear">2023</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">bgape002</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Gemini</a> 强力驱动
  </div>

        
<div class="busuanzi-count">
  <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
    <span class="post-meta-item" id="busuanzi_container_site_uv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-user"></i>
      </span>
      <span class="site-uv" title="总访客量">
        <span id="busuanzi_value_site_uv"></span>
      </span>
    </span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item" id="busuanzi_container_site_pv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-eye"></i>
      </span>
      <span class="site-pv" title="总访问量">
        <span id="busuanzi_value_site_pv"></span>
      </span>
    </span>
</div>








      </div>
    </footer>
  </div>

  
  <script src="/blog/lib/anime.min.js"></script>
  <script src="/blog/lib/velocity/velocity.min.js"></script>
  <script src="/blog/lib/velocity/velocity.ui.min.js"></script>

<script src="/blog/js/utils.js"></script>

<script src="/blog/js/motion.js"></script>


<script src="/blog/js/schemes/pisces.js"></script>


<script src="/blog/js/next-boot.js"></script>




  




  
<script src="/blog/js/local-search.js"></script>











<script>
if (document.querySelectorAll('pre.mermaid').length) {
  NexT.utils.getScript('//cdn.jsdelivr.net/npm/mermaid@8/dist/mermaid.min.js', () => {
    mermaid.initialize({
      theme    : 'forest',
      logLevel : 3,
      flowchart: { curve     : 'linear' },
      gantt    : { axisFormat: '%m/%d/%Y' },
      sequence : { actorMargin: 50 }
    });
  }, window.mermaid);
}
</script>


  

  

  


<script>
NexT.utils.loadComments(document.querySelector('#valine-comments'), () => {
  NexT.utils.getScript('//unpkg.com/valine/dist/Valine.min.js', () => {
    var GUEST = ['nick', 'mail', 'link'];
    var guest = 'nick,mail';
    guest = guest.split(',').filter(item => {
      return GUEST.includes(item);
    });
    new Valine({
      el         : '#valine-comments',
      verify     : false,
      notify     : false,
      appId      : 'szhBf0Qamzsowubi1WnkXmUj-gzGzoHsz',
      appKey     : 'WpwxoK0fVJHvhzWwakr9vbpA',
      placeholder: "Just go go",
      avatar     : 'mm',
      meta       : guest,
      pageSize   : '10' || 10,
      visitor    : false,
      lang       : '' || 'zh-cn',
      path       : location.pathname,
      recordIP   : false,
      serverURLs : ''
    });
  }, window.Valine);
});
</script>

</body>
</html>
